﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ManiaSongs.dal;

namespace ManiaSongs.bll
{
    class SongBll
    {
        public  static void  SafeDelete(model.SongInfo info)
        {
            DirectoryInfo dir;
            if (info.BmsFullName != null)
            {
                dir = new DirectoryInfo(Path.GetDirectoryName(info.BmsFullName));
                dir.SafeDel(info.IconName);
                dir.SafeDel(info.ImageName);
                dir.SafeDel(info.SongName);
                dir.SafeDel(Path.GetFileName(info.BmsFullName));
            }
        }
    }
}
